import request from '@/utils/request';

// 查询解密方式列表
export function list(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/management/decrypt',
		method: 'post',
		data: data,
	});
}

// 新增解密方式
export function add(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/management/decrypt/save',
		method: 'post',
		data: data,
	});
}

// 修改解密方式
export function edit(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/management/decrypt',
		method: 'put',
		data: data,
	});
}

// 删除解密方式
export function remove(ids: any): ApiPromise<ApiResponse> {
	return request({
		url: '/management/decrypt/delete' + ids,
		method: 'delete',
	});
}

// 下载(导出)专属指标列表
export function download(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/management/exclusiveIndicator/download',
		method: 'post',
		data: data,
		responseType: 'blob',
	});
}

// 下载专属指标导入模板
export function importTemplate(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/management/exclusiveIndicator/importTemplate',
		method: 'get',
		params: data,
		responseType: 'blob',
	});
}
